package com.hotel.sampleTool;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hotel.BL.GenericLogic;

import data.General;

public class GeneralSample extends RequestSampleData {
	
	public GeneralSample(HttpServletRequest req,HttpServletResponse resp){
		this.req = req;
		this.resp = resp;
	}

	@Override
	public void CreateSample() {
		CreateGeneralSample(1);
	}

	@Override
	public void CreateSample(int iteration) {
		CreateGeneralSample(1);
	}
	
	public void CreateGeneralSample(long hotelId)
	{
		General g = new GenericLogic(req,resp).GenerateGenericData();
		datastore.put(g.getEntity());
	}
	
}
